/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}

/* Form Styles */
.product-form {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 24px;
}

.form-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.form-group label {
  flex-shrink: 0;
  width: 90px;
  padding-right: 10px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
  text-align: right;
  box-sizing: border-box;
}

.form-group input,
.form-group select,
.form-group textarea {
  flex-grow: 1;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  outline: none;
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.form-group-full {
  grid-column: 1 / -1;
}

.image-upload-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.image-preview {
  width: 100px;
  height: 100px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e8e8e8;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-grow: 1;
}

.radio-group label {
  /* Override some parent styles for radio labels */
  width: auto;
  min-width: unset;
  padding-right: 0;
  font-weight: normal;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px; /* Space between radio button and text */
  cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
    flex-grow: 0;
}

/* Custom validation styles */
.was-validated .form-group input:invalid,
.was-validated .form-group select:invalid,
.was-validated .form-group textarea:invalid {
  border-color: #ff4d4f;
}

.was-validated .form-group input:invalid:focus,
.was-validated .form-group select:invalid:focus,
.was-validated .form-group textarea:invalid:focus {
  border-color: #ff4d4f;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
} 